all: hb3d

C_DEPS  := ../include/hb.h ../include/hb_utils.h ../include/dualbuf.hpp ../include/svec.hpp ../include/jmat.hpp
CU_DEPS := $(C_DEPS) ../include/rng.cuh ../include/jmat.cuh

CUFILES  := rng.cu hb_kernel.cu hb_kernel_sublat.cu hb_kernel_r4x2.cu reduction.cu
CXXFILES := svec.cpp jmat.cpp main.cpp hb_cpu.cpp
CFILES   :=
TARGET   := hb3d

#CUFILES += hb_kernel_shm.cu
#CUFILES += hb_kernel_r2_simple.cu
#CUFILES += hb_kernel_r4.cu 

clean:
	rm -f *.{hash,ptx} *.cu.* *.fatbin.* *.o

include ../config/common.mk